<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>修改</title>
</head>
<script src="/jquery.js"></script>
<body>
<form action="/update" method="post">
  <input type="hidden" th:value="${id}" name="id">
  <table>
    <tr>
      <td>书名</td>
      <td><input type="text" name="name" th:value="${all.name}"></td>
    </tr>
    <tr>
      <td>价格</td>
      <td><input type="text" name="price" th:value="${all.price}"></td>
    </tr>
    <tr>
      <td>类型</td>
      <td><input type="text" name="category" th:value="${all.category}"></td>
    </tr>
    <tr>
      <td>库存</td>
      <td><input type="text" name="pnum" th:value="${all.pnum}"></td>
    </tr>
    <tr>
      <td>图片</td>
      <td><input type="text" name="imgurl" th:value="${all.imgurl}"></td>
    </tr>
    <tr>
      <td>说明</td>
      <td><input type="text" name="description" th:value="${all.description}"></td>
    </tr>
    <tr>
      <td>作者</td>
      <td><input type="text" name="author" th:value="${all.author}"></td>
    </tr>
  </table>
  <input type="submit" value="修改">
  <a href="javascript:void(0)" onclick="location.href='/pageList'">返回</a>
</form>
</body>
</html>